import { defineStore } from 'pinia';
export const useLoginStore = defineStore('login', {

    state: () => {
        return {
            panelType: 'login',//页面类型login,register
        };
    },
    getters: {
        // newName: (state) => state.userInfo.name + 'vip',
    },
    actions: {
        setState({ key, value }) {
            console.log(key, value);
            this[key] = value;
        }

    },
});
